package org.example.springaop;

@Operation
public class MyService {

    public String test(String name) {
        if (name == null || name.isEmpty() || name.startsWith("x")) {
            throw new RuntimeException("invalid name: " + name);
        }
        return "Hello, " + name;
    }

    @OperationLog
    public void testFoo() {

    }

    @Operation
    public void testBar() {

    }

    @Override
    public String toString() {
        return super.toString();
    }
}
